package com.zjitc.backend_shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

/**
 * @author 王新瑜
 * @date 2024/12/20 9:59
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "vueshop_goods")
public class Goods {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private Integer category_id;
    private String name;
    private Double price;
    private String picture;
    private Integer stock;
    private String spec;
    private String description;
    private List<GoodsAlbum> album;
}
